#
# Sub module Makefile
# from Makefile template for multi-directory
#

include $(SRCTREE)/config.mk

# here you can set your own flags
CFLAGS +=

# static library name
LIB = $(obj)libcommon.a

# source file(s), including c file(s) cpp file(s)
# you can also use $(wildcard *.c), etc.
SRC_C   := dbopt.c tavl.c timerlib.c svcmgr.c logopt.c crc32.c
SRC_CPP := 

# object file(s)
OBJ_C   := $(addprefix $(obj),$(patsubst %.c,%.o,$(SRC_C)))
OBJ_CPP := $(addprefix $(obj),$(patsubst %.cpp,%.o,$(SRC_CPP)))

all: _depend $(LIB)

clean:
	@echo "Cleaning..."
	@$(RM) $(OBJ_C) $(OBJ_CPP) $(LIB) *.bak *~ *.d *.o $(obj).depend

.PHONY: all clean

#########################################################################

include $(SRCTREE)/rules.mk

sinclude $(obj).depend

#########################################################################
